//
//  SideView.m
//  TraceViewer
//
//  Created by Vladimir Sarpe on 21/07/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "SideViewDataSource.h"


@implementation SideViewDataSource

- (id)init {
	if (self = [super init]) {
		events = [[NSArray alloc] init];
	}
	return self;
}

- (id) tableView:(NSTableView*)aTableView objectValueForTableColumn:(NSTableColumn*)aTableColumn row:(int)rowIndex {	
	return [events objectAtIndex:rowIndex];
}

/*- (id) tableView:(NSTableView*)aTableView setObjectValue:anObject forTableColumn:(NSTableColumn*)aTableColumn row:(int)rowIndex {
	id o;
	return o;
}*/

- (int) numberOfRowsInTableView:(NSTableView*)aTableView {
	return [events count];
}

- (void) growlNotificationWasClicked:(id)clickContext {
	
}

- (void) updateData:(NSArray*)newData {
	events = newData;
}

@end
